import request from '@/utils/request'
export function getChannelsApi () {
  return request({ url: 'channels' })
}

// 根据文章ID添加不感兴趣
/**
 *
 * @param {*} target 文章ID
 */
export function disLikeById (target) {
  return request.post('article/dislikes', {
    target
  })
}

export function getArticleListApi (params) {
  return request({ url: 'articles', params })
}
